<HTML><HEAD><TITLE>sbds_try_set(+Var, ++Value, ++Bool)</TITLE>
</HEAD><BODY>[ <A HREF="index.html">library(ic_gap_sbds)</A> | <A HREF="../../index.html">Reference Manual</A> | <A HREF="../../fullindex.html">Alphabetic Index</A> ]
<H1>sbds_try_set(+Var, ++Value, ++Bool)</H1>
Try adding/excluding a value to/from an SBDS set search variable
<DL>
<DT><EM>Var</EM></DT>
<DD>The set variable to use
</DD>
<DT><EM>Value</EM></DT>
<DD>The value to try
</DD>
<DT><EM>Bool</EM></DT>
<DD>Whether to add or exclude the value first
</DD>
</DL>
<H2>Description</H2>
   Make an SBDS (set) search choice.  Specifically, if Bool is 1, try adding
   the (integer) value Value to the (set) variable Var; on backtracking
   exclude it.  If Bool is 0, try excluding Value first and try adding it on
   backtracking.<P>

   Var should be an element of an array previously initialised using
   sbds_initialise_set/5.<P>

   Use sbds_try_set/4 if you wish to know which is the currently successful
   branch (Value in Var or Value notin Var).

<H2>See Also</H2>
<A HREF="../../lib/ic_gap_sbds/sbds_initialise_set-5.html">sbds_initialise_set / 5</A>, <A HREF="../../lib/ic_gap_sbds/sbds_try_set-4.html">sbds_try_set / 4</A>, <A HREF="../../lib/ic_gap_sbds/sbds_try-2.html">sbds_try / 2</A>
</BODY></HTML>
